<template>
    <!-- 运营管理 运营人员管理 -->
    <div>
        <div class="opeCom">
            <h4>运营人员管理</h4>
            <div class="choice">
                <el-form ref="form" :model="form" size="mini" :inline="true" class="demo-form-inline">
                    <el-form-item label="">
                        <el-select v-model="form.region" placeholder="所有">
                            <el-option label="所有" value="she"></el-option>
                            <el-option label="认证审核人员" value="he"></el-option>
                            <el-option label="借款审核人员" value="me"></el-option>
                            <el-option label="贷后管理人员" value="who"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item label="">
                        <el-date-picker type="date" placeholder="选择开始日期" v-model="form.date1"></el-date-picker>
                    </el-form-item>
                    <el-form-item label="">
                        <el-date-picker type="date" placeholder="选择结束日期" v-model="form.date2"></el-date-picker>
                    </el-form-item>
                    <el-form-item label="">
                        <el-button type="primary">确定</el-button>
                    </el-form-item>
                    <el-form-item label="">
                        <el-button type="primary">下载</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
        <el-table :data="tableData.slice((currentPage-1)*pagesize,currentPage*pagesize)"  style="width: 100%">
            <el-table-column prop="name" label="姓名" width="100">
            </el-table-column>
            <el-table-column prop="role" label="角色" width="180">
            </el-table-column>
            <el-table-column prop="record" label="分配记录">
            </el-table-column>
            <el-table-column prop="handel" label="处理记录">
            </el-table-column>
            <el-table-column prop="status" label="状态">
            </el-table-column>
            <el-table-column prop="operate" label="操作">
                <template slot-scope="scope">
                            <el-button type="text" size="small">暂停分配任务</el-button>
                </template>
            </el-table-column>
        </el-table>
<!-- 分页 -->
<div class="pagination ">
        <el-pagination
  @size-change="handleSizeChange"
    @current-change="handleCurrentChange"
    :current-page="currentPage"
    :page-sizes="[1, 2, 3, 4]"
    :page-size="pagesize"
    layout="prev, pager, next"
    :total='4'>
</el-pagination>
</div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                 currentPage:1,
                pagesize:1,
                form: {
                    region: '',
                    date1: '',
                    date2: ''
                },
                tableData: [{
                        name: '朱国豪1',
                        role: '借款审核人员',
                        record: '164',
                        handel: '158',
                        status: '正在接单',
                        operate: '暂停分配订单'
                    },
                    {
                        name: '朱国豪2',
                        role: '借款审核人员',
                        record: '164',
                        handel: '158',
                        status: '正在接单',
                        operate: '暂停分配订单'
                    },
                    {
                        name: '朱国豪3',
                        role: '借款审核人员',
                        record: '164',
                        handel: '158',
                        status: '正在接单',
                        operate: '暂停分配订单'
                    },
                    {
                        name: '朱国豪4',
                        role: '借款审核人员',
                        record: '164',
                        handel: '158',
                        status: '正在接单',
                        operate: '暂停分配订单'
                    }
                ]
            }
        },
        methods:{
             handleSizeChange(val) {
        this.pagesize=val;
      },
      handleCurrentChange(val) {
        this.currentPage=val;
      }
        }
    }
</script>
<style lang="scss" scoped>
    @import '../../css/topChoice.scss';
</style>
